<?php
class Admin_Form_ConfirmForm extends Zend_Form
{
	public function __construct($option = null) {
		parent::__construct($option);

		ZendX_JQuery::enableForm($this);

		// Wrap the complete form inside a Dialog box
		$this->setDecorators(array(
				'FormElements',
				'Form',
				array('DialogContainer', array(
						'id'          => 'tabContainer',
						'style'       => 'width: 600px;',
						'jQueryParams' => array(
								'title'		=> 'Bạn có muốn xóa không?',
								'tabPosition' => 'center',
								'width'		=> '500px',
						),
				)),
		));
		
	$yes = new Zend_Form_Element_Submit('confirm');
	$yes->setLabel('Có')
		->setValue('yes');
	
	$no = new Zend_Form_Element_Submit('confirm');
	$no->setLabel('Có')
		->setValue('yes');
	
	$this->addElements(array($yes,$no));
	$this->setMethod('post');
	$this->setAction(Zend_Controller_Front::getInstance()->getBaseUrl().'/admin/nguoidung/multidelete');
	}
}